package com.moon.utils;

import com.moon.entity.Admin;

public class MyTest {
    public static void main(String[] args) throws InterruptedException {
        Admin admin = new Admin();
//        admin.setAccount("wn");
//        admin.setPassword("111111");
//        admin.setId(2);
//        String token = JwtUtils.getToken(admin, 3000);
//        System.out.println(token);
//        Thread.sleep(5000);
//        Admin object = JwtUtils.getObject(token, Admin.class);
//        System.out.println("还原后的admin:"+object);
        System.out.println("admin :"+admin);
        System.out.println(admin.toString());
    }
}
